package com.mls.fivedistrict.pojo;

import com.baomidou.mybatisplus.enums.IdType;

import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.Version;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户认证奖励记录表
 * </p>
 *
 * @author Five Team
 * @since 2018-05-23
 */
@Data
@Accessors(chain = true)
@TableName("t_user_auth_reward_record")
public class UserAuthRewardRecord extends Model<UserAuthRewardRecord> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    private Long userId;
    /**
     * 用户认证记录ID
     */
    private Long userAuthId;
    /**
     * 自己获得的算力ID
     */
    private Long calculateId;
    /**
     * 自己获得的积分ID
     */
    private Long integralId;
    /**
     * 任务完成获得的奖励值
     */
    private BigDecimal integralValue;
    /**
     * 一级奖励算力ID
     */
    private Long oneLevelCalculateId;
    /**
     * 一级奖励积分ID
     */
    private Long oneLevelIntegralId;
    /**
     * 二级奖励算力ID
     */
    private Long twoLevelCalculateId;
    /**
     * 二级奖励积分ID
     */
    private Long twoLevelIntegralId;
    /**
     * 一级奖励积分值
     */
    private BigDecimal oneLevelIntegralValue;
    /**
     * 二级奖励积分值
     */
    private BigDecimal twoLevelIntegralValue;
    private Date createDate;
    private Date updateDate;
    private boolean isDelete;
    private Integer version;
    private Long oneLevelUserId;

    private Long secondLevelUserId;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
